package cn.gailvlun.gll.chatlib.bean;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;



public class ChatReq {

    public static ChatReq create(String msgDialogId) {
        ChatReq chatReq = new ChatReq();
        chatReq.setTarget(msgDialogId);
        return chatReq;
    }







    private String target;
    private String payload;
    private ChatMsgType type;
    private String id;
    private Integer width;
    private Integer height;
    @SerializedName("at_all")
    private String atAll;
    @SerializedName("at")
    private List<Integer> atWhomList;
    private String class_type;

    // new
    private long seq; // current timestamp(/s)

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTarget() {
        return target;
    }

    private void setTarget(String target) {
        this.target = target;
    }

    public String getPayload() {
        return payload;
    }

    public void setPayload(String payload) {
        this.payload = payload;
    }

    public ChatMsgType getType() {
        return type;
    }

    public void setType(ChatMsgType type) {
        this.type = type;
    }

    public Integer getWidth() {
        return width;
    }

    public void setWidth(Integer width) {
        this.width = width;
    }

    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    public String isAtAll() {
        return atAll;
    }

    public void setAtAll(String atAll) {
        this.atAll = atAll;
    }

    public List<Integer> getAtWhomList() {
        return atWhomList;
    }

    public void setAtWhomList(List<Integer> atWhomList) {
        if (this.atWhomList == null) {
            this.atWhomList = new ArrayList<>();
        }
        this.atWhomList.addAll(atWhomList);
    }

    public String getClass_type() {
        return class_type;
    }

    public void setClass_type(String class_type) {
        this.class_type = class_type;
    }

    public long getSeq() {
        return seq;
    }

    public void setSeq(long seq) {
        this.seq = seq;
    }
}
